Skip to content

Conversation

maartenth
Copy link
Contributor

In my merged PR #1099, I was too fast. I didn't make enough changes in the error handler and for ECONNREFUSED this introduced a new error, since proxyReq was not defined.

To fix it, I wrapped the error handler in a createErrorHandler() function to specify which request should be handled (proxyReq or forwardReq).

@jcrugzz
Copy link
Contributor

jcrugzz commented Dec 2, 2016

@maartenth We are both at fault here as I missed it too ;). Thanks for contributing! Please let me know if the forward proxy is working as expected as im not sure if it was originally written to spec.

@jcrugzz jcrugzz merged commit 927357b into http-party:master Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants